package com.syx.order.Controller;

import com.syx.order.Api.ProductApi;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/feign")
public class FeignController {

    @Resource
    ProductApi productApi;

    @RequestMapping("/f1")
    public String f1(Integer id){
        return productApi.p1(id);

    }
}
